﻿<%@ Page Title="Register" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
    CodeFile="Register.aspx.cs" Inherits="Kohvik_Register" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>

<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
    <h2>
        Loo uus konto
    </h2>
    <p>
        Uue konto loomiseks kasuta allpool olevat vormi.
    </p>
    <p>
        Parool peab koosnema vähemalt 6-st märgist.
    </p>
    <span class="failureNotification">
        <asp:Literal ID="ErrorMessage" runat="server"></asp:Literal>
    </span>
    <asp:ValidationSummary ID="RegisterUserValidationSummary" runat="server" CssClass="failureNotification"
        ValidationGroup="RegisterUserValidationGroup" />
    <div class="accountInfo">
        <fieldset class="register">
            <legend>Konto informatsioon</legend>
            <p>
                <asp:Label ID="UserNameLabel" runat="server" AssociatedControlID="UserName">Kasutajanimi:</asp:Label>
                <asp:TextBox ID="UserName" runat="server" CssClass="textEntry" OnLoad="UserName_Load" />
                <asp:RequiredFieldValidator ID="UserNameRequired" runat="server" ControlToValidate="UserName"
                    CssClass="failureNotification" ErrorMessage="Sisesta kasutajanimi." ToolTip="Sisesta kasutajanimi." />
            </p>
            <p>
                <asp:Label ID="EmailLabel" runat="server" AssociatedControlID="Email">E-mail:</asp:Label>
                <asp:TextBox ID="Email" runat="server" CssClass="textEntry"></asp:TextBox>
                <asp:RequiredFieldValidator ID="EmailRequired" runat="server" ControlToValidate="Email"
                    CssClass="failureNotification" ErrorMessage="Sisesta e-mail." ToolTip="Sisesta e-mail." />
            </p>
            <p>
                <asp:ScriptManager ID="ScriptManager1" runat="server" />
                <asp:Label ID="PasswordLabel" runat="server" AssociatedControlID="Password">Parool:</asp:Label>
                <asp:TextBox ID="Password" runat="server" CssClass="passwordEntry" TextMode="Password"></asp:TextBox>
                <asp:PasswordStrength ID="PasswordStrength1" runat="server" TargetControlID="Password" />
                <asp:RequiredFieldValidator ID="PasswordRequired" runat="server" ControlToValidate="Password"
                    CssClass="failureNotification" ErrorMessage="Sisesta parool." ToolTip="Sisesta parool." />
            </p>
            <p>
                <asp:Label ID="ConfirmPasswordLabel" runat="server" AssociatedControlID="ConfirmPassword">Kinnita parool:</asp:Label>
                <asp:TextBox ID="ConfirmPassword" runat="server" CssClass="passwordEntry" TextMode="Password"></asp:TextBox>
                <asp:RequiredFieldValidator ControlToValidate="ConfirmPassword" CssClass="failureNotification"
                    Display="Dynamic" ErrorMessage="Sisesta parooli kinnitus." ID="ConfirmPasswordRequired"
                    runat="server" ToolTip="Sisesta parooli kinnitus." />
                <asp:CompareValidator ID="PasswordCompare" runat="server" ControlToCompare="Password"
                    ControlToValidate="ConfirmPassword" CssClass="failureNotification" Display="Dynamic"
                    ErrorMessage="Sisestatud paroolid ei ole samad." />
            </p>
        </fieldset>
        <p>
            <asp:Button ID="CreateUserButton" runat="server" Text="Loo kasutajakonto" OnClick="createUserBtn_Click" CssClass="btn" />
        </p>
    </div>
</asp:Content>
